package com.clarence.dada.modular.system.menu.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 菜单资源控制器
 *
 * @author GD
 * @since 2021/8/8 22:38
 */
@RestController
@RequestMapping("/system/sysMenuResource/")
@Tag(name = "菜单资源管理", description = "菜单资源Controller")
public class SysMenuResourceController {
//
//    @Resource
//    private SysMenuResourceService sysMenuResourceService;
//
//    /**
//     * 获取菜单的资源分配列表
//     *
//     * @author GD
//     * @since 2021/8/8 22:38
//     */
//    @Operation(summary = "系统菜单资源_分配列表", description = "获取菜单的资源分配列表")
//    @PostMapping("getMenuResourceList")
//    public Result<List<ResourceTreeNode>> getMenuResourceList(@Validated(value = SysMenuResourceVo.list.class) SysMenuResourceVo sysMenuResourceVo) {
//        List<ResourceTreeNode> menuResourceTree = sysMenuResourceService.getMenuResourceTree(sysMenuResourceVo.getBusinessId());
//        return new Result<>(menuResourceTree);
//    }
//
//    /**
//     * 设置菜单资源绑定
//     *
//     * @author GD
//     * @since 2021/8/10 11:55
//     */
//    @Operation(summary = "系统菜单资源_绑定", description = "设置菜单资源绑定")
//    @PostMapping("addMenuResourceBind")
//    public Result<Void> addMenuResourceBind(@RequestBody @Validated(value = SysMenuResourceVo.add.class) SysMenuResourceVo sysMenuResourceVo) {
//        sysMenuResourceService.addMenuResourceBind(sysMenuResourceVo);
//        return Result.SUCCESS;
//    }

}
